package com.smallrig.mall.template.exchange;

import com.smallrig.mall.template.entity.Product;
import com.smallrig.mall.template.http.HttpExchange;
import com.smallrig.mall.template.http.LeqiResponse;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@HttpExchange(value = "smallrig-basics")
public interface TestExchange {

    @PostMapping(value = "/api/getAutoPartitionMarkets")
    LeqiResponse<Product> test(@RequestBody Product product);

    @GetMapping(value = "/api/getAutoPartitionMarkets")
    void test2(@RequestParam("id") String id,@RequestParam("id2")Long id2);

    @RequestMapping(method = RequestMethod.GET, value = "/api/getAutoPartitionMarkets")
    Product test3(@RequestParam("id") String id);

    @RequestMapping(method = RequestMethod.GET, value = "/api/getAutoPartitionMarkets")
    Product test4(@RequestParam("ids") String[] ids);


    @RequestMapping(method = RequestMethod.GET, value = "/api/getAutoPartitionMarkets")
    Product test5(@RequestParam("ids") List<Integer> ids);
}
